<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
	<h:form>
		<rich:panelMenu mode="server" topGroupExpandedRightIcon="chevronUp"
			topGroupCollapsedRightIcon="chevronDown" groupExpandedLeftIcon="disc"
			groupCollapsedLeftIcon="disc">
			<rich:panelMenuGroup label="Panel zarządzania" expanded="true">
				<rich:panelMenuItem label="Zrządzanie użytkownikami"
					actionListener="#{adminPanelBean.changeSection}"
					action="#{jsfutils.redirect('mainContent/adminUsersManagementPage')}">
				</rich:panelMenuItem>
				<rich:panelMenuItem label="Zrządzanie książkami"
					actionListener="#{adminPanelBean.changeSection}"
					action="#{jsfutils.redirect('mainContent/adminBooksManagementPage')}">
				</rich:panelMenuItem>
				<rich:panelMenuItem label="Relizacja zamówień"
					actionListener="#{adminPanelBean.changeSection}"
					action="#{jsfutils.redirect('mainContent/adminOrdersManagementPage')}">
				</rich:panelMenuItem>
			</rich:panelMenuGroup>
		</rich:panelMenu>
		<h:commandButton value="Wróc do sklepu"
			action="#{jsfutils.redirect('mainContent/booksTablePage')}" />
	</h:form>

</ui:composition>
</html>